@use '../../_styles/mixin.scss' as *;
@use './var.scss';

.o-dropdown-list {
  list-style: none;
  margin: 0;
  padding: var(--dropdown-list-padding);
  background-color: var(--dropdown-list-bg-color);
  box-shadow: var(--dropdown-list-shadow);
  border-radius: var(--dropdown-list-radius);
  border: var(--dropdown-list-bd);
}

.o-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: var(--dropdown-item-justify);
  padding: var(--dropdown-item-padding);
  background-color: var(--dropdown-item-bg-color);
  font-size: var(--dropdown-item-text-size);
  line-height: var(--dropdown-item-text-height);
  border-radius: var(--dropdown-item-radius);
  color: var(--dropdown-item-color);
  transition: background-color var(--o-duration-s) var(--o-easing-standard);
  cursor: pointer;

  &:hover {
    background-color: var(--dropdown-item-bg-color-hover);
    color: var(--dropdown-item-color-hover);
  }
}

.o-dropdown-item + .o-dropdown-item {
  margin-top: var(--dropdown-item-gap);
}

.o-dropdown-item-disabled {
  &,
  &:hover {
    cursor: not-allowed;
    color: var(--dropdown-item-color-disabled);
    background-color: var(--dropdown-item-bg-color-disabled);
  }
}
